@import '../../../themes/mixins/animations';

%smallText {
  color: var(--theme-bordered-box-text-color);
  font-family: var(--font-regular);
  font-size: 14px;
  height: 19px;
  letter-spacing: 0.5px;
  line-height: 1.36;
}

.syncingWrapper {
  margin-bottom: 20px;

  :global {
    .LoadingSpinner_component {
      margin-top: 10px;
    }
  }
}

.component {
  padding: 0 20px 20px;

  .assetsLeftContainer {
    width: calc(100% - 77px);
  }

  .assetRightContainer {
    .assetSendButton {
      border-radius: 3px;
      cursor: pointer;
      font-size: 11px;
      font-weight: bold;
      height: 21px;
      line-height: 1.36;
      padding: 3px 18px;
      text-transform: uppercase;
      width: 67px;

      &:hover {
        background-color: var(
          --theme-report-issue-button-background-color-hover
        );
      }

      &:active {
        background-color: var(
          --theme-report-issue-button-background-color-active
        );
      }

      &.disabled {
        opacity: 0.3;
        pointer-events: none;
      }
    }
  }
}

.header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 11px 0 20px;
  .title {
    color: var(--rp-input-placeholder-color);
    font-family: var(--font-regular);
    font-size: 16px;
    line-height: 1.38;
    white-space: nowrap;
    width: calc(100% - 110px);
  }
  .searchValue {
    color: var(--theme-bordered-box-text-color);
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    line-height: 1.38;
    margin-right: 5px;
    max-width: calc(100% - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    white-space: nowrap;
  }
  .clearSearchValue {
    cursor: pointer;
    display: inline-block;
    padding: 0 2px;
    span {
      display: inline-block;
      height: 8px;
    }
    svg {
      display: block;
      height: 7px;
      opacity: 0.5;
      width: 7px;
    }
    &:hover {
      svg {
        opacity: 1;
      }
    }
  }
  .searchButton {
    border-radius: 4px;
    font-size: 10px;
    height: auto;
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 4px 8px;
    text-transform: uppercase;
    white-space: nowrap;
    width: auto;
    &:focus {
      box-shadow: inset 0 0 0 2px var(--theme-button-flat-outline-color) !important;
    }
  }
  &.ja-JP {
    .title {
      max-width: calc(100% - 132px);
    }
    .searchValue {
      max-width: calc(100% - 133px);
    }
  }
}

.search {
  margin-bottom: 20px;
  position: relative;
  .searchIcon {
    left: 20px;
    position: absolute;
    top: 17px;
    z-index: 1;
    svg {
      height: 15px;
      width: 15px;
    }
  }
  input {
    border-radius: 4px;
    padding: 13px 58px 13px 54px;
  }
  .clearButton {
    border-radius: 3px;
    cursor: pointer;
    height: 28px;
    position: absolute;
    right: 12px;
    top: 11px;
    width: 28px;
    z-index: 1;
    &:hover {
      opacity: 0.8;
    }
    svg {
      height: 10px;
      width: 10px;
      polygon {
        fill: var(--theme-bordered-box-text-color);
      }
    }
  }
}

.noResults {
  color: var(--theme-bordered-box-text-color);
  font-family: var(--font-regular);
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.33;
  margin: 0 12px;
}

.assetsColumns {
  display: flex;
  justify-content: space-between;
  margin: 0 42px 10px 12px;
  span {
    color: var(--theme-bordered-box-text-color);
    font-family: var(--font-semibold);
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 2;
    text-transform: uppercase;
  }
}

.assetAmount {
  color: var(--theme-bordered-box-text-color);
  font-family: var(--font-light);
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 1.38;
  margin-top: 4px;
}
